package br.ufrgs.tst.tsp.model;

import junit.framework.Assert;

import org.junit.Before;
import org.junit.Test;

import br.ufrgs.tsp.model.SequenceGenerator;

/**
 * Tests the Sequence generator.
 * @author mineiro
 *
 */
public class TestSequenceGenerator {

	/**
	 * Sequence generator used to create cities identifiers.
	 */
	private SequenceGenerator generator;
	
	@Before
	public void setUp() {
		generator = new SequenceGenerator();
	}
	
	@Test
	public void getNextSequenceTest() {
		
		Assert.assertTrue(generator.getNextSequence() == 0);
		Assert.assertTrue(generator.getNextSequence() == 1);
		Assert.assertTrue(generator.getNextSequence() == 2);
		Assert.assertTrue(generator.getNextSequence() == 3);
	}
}
